#include <SFML/Graphics.hpp>
#include <iostream>

#include "gamesprite.h"

bool gameSprite::loadSprite( std::string p_filename)
{
	if (!m_texture.loadFromFile(p_filename))
		return false;

	m_texture.setSmooth(false);

	setTexture(m_texture);

	return true;
};

void gameSprite::centerOrigin()
{
	setOrigin(getLocalBounds().width/2, getLocalBounds().height/2);
};